home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group98c.txt
/
000005_icon-group-sender _Thu Sep 10 07:46:00 1998.msg
< prev
next >
Wrap
Internet Message Format
|
2000-09-20
|
3KB
Return-Path: <icon-group-sender>
Received: from kingfisher.CS.Arizona.EDU (kingfisher.CS.Arizona.EDU [192.12.69.239])
by baskerville.CS.Arizona.EDU (8.9.1a/8.9.1) with SMTP id HAA15772
for <icon-group-addresses@baskerville.CS.Arizona.EDU>; Thu, 10 Sep 1998 07:45:59 -0700 (MST)
Received: by kingfisher.CS.Arizona.EDU (5.65v4.0/1.1.8.2/08Nov94-0446PM)
id AA30480; Thu, 10 Sep 1998 07:45:32 -0700
Message-Id: <35F73155.1816@gte.net>
Date: Wed, 09 Sep 1998 20:54:29 -0500
From: MJE <evans@gte.net>
Reply-To: evans@gte.net
Organization: None
X-Mailer: Mozilla 3.01 (Win95; I)
Mime-Version: 1.0
To: icon-group@optima.CS.Arizona.EDU
Subject: Context Switching
References: <35F551C0.E6DA1515@ix.netcom.com> <6t6nie$a18@hawk.CS.Arizona.EDU>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Transfer-Encoding: 7bit
Content-Transfer-Encoding: 7bit
Errors-To: icon-group-errors@optima.CS.Arizona.EDU
Content-Transfer-Encoding: 7bit
Status: RO
This is one aspect of Icon I don't like. Why does there have to be
custom push/pop assembly for context switching? Can't another (safer,
more portable) form of context-switching be used?
Seems to me there should be a better way, but maybe I don't really
understand how the context switching works in Icon.
Best regards,
Mark
Gregg Townsend wrote:
>
> David Feustel <feustel@ix.netcom.com> wrote:
> > Are there any other Icon features besides coroutines that would
> > preclude an Ansi C version of the commandline version of Icon?
>
> Actually, it would be possible to write a nearly full version of Icon
> using ANSI C, including co-expressions. Only a few things around the
> fringes (such as dynamic loading, pipes, and &host) can't be done in
> strict ANSI C.
>
> The current C implementation, though, has several other non-ANSI aspects.
> The system-dependent context switch code for co-expressions is one, but
> the memory allocation and garbage collection code is more significant.
> Several assumptions about pointer behavior exceed the promises of ANSI C,
> and these pervade the whole run-time system.
>
> ---------------------------------------------------------------------------
> Gregg Townsend Gould-Simpson Building gmt@cs.arizona.edu
> Staff Scientist 1040 E. 4th St. 32 13 45N 110 57 16W
> Dept. of Computer Science PO Box 210077 tel: +1 520 621 4325
> The University of Arizona Tucson, AZ 85721-0077 fax: +1 520 621 4246